<template>
  <div class="div1">
      <Haoping :haoping="haoping"></Haoping>
      <Hot :reyingList='reyingList'></Hot>

  </div>
</template>

<script>
import Haoping from"../../components/Haoping.vue";
import axios from "axios";
import Hot from "@/views/home/Hot.vue";
export default {
  name:'Reying',
  data:function(){
    return{
      reyingList:[],
      haoping:'',
    };
  },
  components:{
    Hot,
    Haoping,
  },
  mounted(){
    //热映地址
            axios.get("/ajax/movieOnInfoList?token=&optimus_uuid=3084E8D0146211ECA50A477D88250D251D93073CCDCC41D9A4CAC797521EC42D&optimus_risk_level=71&optimus_code=10").then((res)=>{
            console.log(res);
            res.data.movieList.forEach((item)=>{
                item.img=item.img.replace('w.h','128.180')
            });
            this.reyingList = res.data.movieList;
        });
        //好评地址
        axios.get("/ajax/topRatedMovies?token=&optimus_uuid=3084E8D0146211ECA50A477D88250D251D93073CCDCC41D9A4CAC797521EC42D&optimus_risk_level=71&optimus_code=10").then((res)=>{
            console.log(res);
            this.haoping=res.data
        })

  }
}
</script>

<style scoped>



</style>